// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
Vue.config.productionTip = false;
import Print from '@/plugs/print'
Vue.use(Print) 

import"./config/directive"
// 引入路由
import VueRouter from "vue-router";
Vue.use(VueRouter)

import *as echarts from 'echarts'
Vue.prototype.$echarts = echarts
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})

// 富文本插件
import Vue2Editor from "vue2-editor";
Vue.use(Vue2Editor);

// 全局引用第三方组件
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
Vue.component('treeselect',Treeselect)
